<script setup lang="ts">

await delay(1000).then((rs)=>{
  console.log(rs);
  console.log("延时执行完毕。。。")
})


  function delay(ms: number) {
    return new Promise(resolve => setTimeout(resolve, ms));
  }


</script>

<template>
  <p>Dashboard</p>
  <slot>默认插槽内容。。。，否则获取<b>&lt;dashboard&gt;</b>之间的内容<b>&lt;/dashboard&gt;</b>  </slot>
</template>

<style scoped>

</style>